﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Ttifa.MongoDB
{
    public abstract class BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }
    }
}
